//
//  MVSecendScrooViewMode.m
//  testCocoPods1.0
//
//  Created by ChenJs92 on 16/11/15.
//  Copyright © 2016年 chenjs92. All rights reserved.
//

#import "MVSecendScrooViewMode.h"
#import "MVSecendScrooViewDataModel.h"
@implementation MVSecendScrooViewMode
-(void)yd_initialize{
    
    NSMutableArray *dataList = [[NSMutableArray alloc] init];
    for (int i=0; i<3; i++) {
        MVSecendScrooViewDataModel *viewModel = [[MVSecendScrooViewDataModel alloc] init];
        viewModel.banaImageName = @"banarImage";
        [dataList addObject:viewModel];
    }
    self.banarList = [dataList copy];
    
    [dataList removeAllObjects];
    for (int i=0; i<8; i++) {
        MVSecendScrooViewDataModel *viewModel = [[MVSecendScrooViewDataModel alloc] init];
        viewModel.titleName = [NSString stringWithFormat:@"标题%d",i];
        [dataList addObject:viewModel];
    }
    self.actiList = [dataList copy];
    
    [dataList removeAllObjects];
    for (int i=0; i<10; i++) {
        MVSecendScrooViewDataModel *viewModel = [[MVSecendScrooViewDataModel alloc] init];
        viewModel.titleName = [NSString stringWithFormat:@"标题%d",i];
        viewModel.banaImageName = @"goodsHeadImage";
        [dataList addObject:viewModel];
    }
    self.goodsList = [dataList copy];
    
    [dataList removeAllObjects];
    
}
-(NSArray *)banarList{
    if (!_banarList) {
        _banarList = [[NSArray alloc] init];
    }
    return _banarList;
}
-(NSArray *)actiList{
    if (!_actiList) {
        _actiList = [[NSArray alloc] init];
    }
    return _actiList;
}
-(NSArray *)goodsList{
    if (!_goodsList) {
        _goodsList = [[NSArray alloc] init];
    }
    return _goodsList;
}
-(RACSubject *)actiClickSubject{
    if (!_actiClickSubject) {
        _actiClickSubject = [RACSubject subject];
    }
    return _actiClickSubject;
}
-(RACSubject *)banarClickSubject{
    if (!_banarClickSubject) {
        _banarClickSubject = [RACSubject subject];
    }
    return _banarClickSubject;
}
-(RACSubject *)goodsClickSubject{
    if (!_goodsClickSubject) {
        _goodsClickSubject = [RACSubject subject];
    }
    return _goodsClickSubject;
}
@end
